#ifndef BSAVE_H
#define BSAVE_H
#include "treegen.h"
#include "treegen3d.h"


void SaveB(TreeGen3D *tree, int treenum, QString filename, Camera *cam);
void RecurSave(Bud *b, QTextStream &out, int parent, int term, int &nextIdx, int treenum);
void saveCameraData(QTextStream &out, Camera *camera);

TreeGen3D* LoadTree(QString filename, bool &success, bool &keeploading, int treenum);

#endif // BSAVE_H
